android ui库

调用方式：
hide(v);
setAction(new PlusAction(), 1);//+
setAction(new DrawerAction(), 0);//菜单

reveal(v, COLORS[0]);
setAction(new CloseAction(), 1);//x
setAction(new BackAction(), 1);//箭头


  private long animationDuration = 420L;
  private int backgroundColor = R.color.orange;
  private Point getLocationInView(View paramView1, View paramView2) {
        int[] arrayOfInt1 = new int[2];
        paramView1.getLocationOnScreen(arrayOfInt1);
        int[] arrayOfInt2 = new int[2];
        paramView2.getLocationOnScreen(arrayOfInt2);
        arrayOfInt2[0] = (arrayOfInt2[0] - arrayOfInt1[0] + paramView2.getWidth() / 2);
        arrayOfInt2[1] = (arrayOfInt2[1] - arrayOfInt1[1] + paramView2.getHeight() / 2);
        return new Point(arrayOfInt2[0], arrayOfInt2[1]);
    }
    private void hide(View paramView) {
        Point localPoint = getLocationInView(this.revealColorView, paramView);
        this.revealColorView.hide(localPoint.x, localPoint.y, this.backgroundColor, 0, this.animationDuration, null);

    }
    private void reveal(View paramView, int paramInt) {
        Point localPoint = getLocationInView(this.revealColorView, paramView);
        this.revealColorView.reveal(localPoint.x, localPoint.y, paramInt, 0, this.animationDuration, null);
    }
    private void setAction(Action paramAction, int paramInt) {
        actionView.setAction(paramAction, paramInt);
    }